# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-entrypoints
pkgver=0.3
pkgrel=6
pkgdesc="Discover and load entry points from installed packages."
url="https://github.com/takluyver/entrypoints"
arch="noarch"
license="MIT"
depends="python3"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/e/entrypoints/entrypoints-$pkgver.tar.gz"
builddir="$srcdir/entrypoints-$pkgver"

replaces="py-entrypoints" # Backwards compatibility
provides="py-entrypoints=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="aa1274362d3a4b00266103319ca51aa266605b4999c89a9d0673eb61bfae9e646cb0ec6b86c95544493f6fe048385a2c7641d64adca8f45815546fb1e663c858  entrypoints-0.3.tar.gz"
